<?php
if(!isset($title)){
	echo "Chưa có tiêu đề ";
}
if(!isset($link)){
	$link="error.php";
}
if (!isset($header)) {
	$header="error.php";
}
if(!isset($center)){
	$center="error.php";
}
if (!isset($footer)) {
	$footer="error.php";
}
if (!isset($function)) {
	$function="error.php";
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title><?php echo $title;?></title>
		<?php 
			include $link;
		?>
	</head>
	<body>
		<div id="wrapper"><!--div tong ngoai-->
			<div id="main">
				<div class="header"><!--div header trên cùng-->
		            <?php
				    	include $header;
				    ?>
				</div>
				<div class="center"><!--div chua noi dung chinh trong khung-->
					<div id="left"> <?php include $function; ?></div>
					<div id="right"> <div id="content_center"><?php include $center; ?></div></div>
					<div id="clr"> </div>
				</div>
				<div class="footer"><!--div chua noi dung footer-->
					<?php
						include $footer;
					?>
				</div>
			</div>
		</div>
	</body>
</html>

